<script lang="ts">
export default {
  name: 'Footter',
}
</script>

<script setup lang="ts">
defineProps(['diag'])
const emit = defineEmits(['submit',"update:diag"])

function Submit() {
  emit("submit");
}

function Cancel() {
  emit("update:diag", false);
}

</script>


<template>
  <div class="container">
    <div class="footer">
      <el-button @click="Cancel()">取消</el-button>
      <el-button type="primary" @click="Submit()">创建</el-button>
    </div>
  </div>
</template>


<style scoped>
.container {
  padding: 10px;
  display: flex;
}
.footer {
  margin-left: auto;
}
</style>